<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/jquery.js"></script>
    <style>
        .box{
            width: 100%;
            height: 100px;
            background: skyblue;
            margin-bottom: 10px;
        }
    </style>
</head>
<body>
    <button>显示</button>
    <button>隐藏</button>
    <div class="box">1</div>
    <div class="box">2</div>
    <div class="box">3</div>
    <script>
        $(function(){
            $("button").eq(1).click(function(){
                $(".box").hide(1000)
            })
            $("button").eq(0).click(function(){
                $(".box").show(1000)
            })
        })
    </script>
</body>
</html>